package cn.xej.test;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author Herman.Wang
 * @version $ Id: ProductController.java, v 0.1 Herman Exp $
 * @date 2021-11-22 15:16:41
 */
@RestController
public class ProductController {

    @Autowired
    private ProductAllService productAllService;

    @GetMapping("product/{id}/{type}")
    public String getProductName(@PathVariable("id") Integer id,@PathVariable("type") String type){

        return productAllService.getProductName(id,type);
    }


}
